package com.sky.service.wx_user.impl;

import com.sky.entity.Setmeal;
import com.sky.mapper.WXSetmealMapper;
import com.sky.service.wx_user.WXSetmealService;
import com.sky.vo.DishItemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WXSetmealServiceImpl implements WXSetmealService {
    @Autowired
    private WXSetmealMapper wxSetmealMapper;

    /**
     * 条件查询
     * @param setmeal
     * @return
     */
    @Override
    public List<Setmeal> list(Setmeal setmeal) {
       List<Setmeal> list = wxSetmealMapper.list(setmeal);
       return list;
    }

    /**
     * 根据id查询菜品选项
     * @param id
     * @return
     */
    @Override
    public List<DishItemVO> dishList(Long id) {
        List<DishItemVO> list = wxSetmealMapper.dishList(id);
        return list;
    }
}
